package com.zzs.client.pojo.query;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author zzs
 * @date 2025/03/27
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class ProblemCodeQuery {
    @NotNull(message = "必须指定题目")
    private Long problemId;

    @NotNull(message = "必须选择编程语言")
    @Min(value = 1, message = "请选择正确的编程语言")
    @Max(value = 1, message = "请选择正确的编程语言")
    private Integer language;
}
